cmake_minimum_required(VERSION 3.1)
cmake_policy(SET CMP0048 NEW)
project(sndtest VERSION 0.1.0.0)


include_directories("${CMAKE_CURRENT_BINARY_DIR}"
	"${PROJECT_BINARY_DIR}"
	"${PROJECT_SOURCE_DIR}")

set(PLAYBACK
playback.c
)

set(CAPTURE
capture.c
)

# target
add_executable(playback ${PLAYBACK})
target_link_libraries(playback asound)

add_executable(capture ${CAPTURE})
target_link_libraries(capture asound)

# install
install(TARGETS playback DESTINATION bin)
install(TARGETS capture DESTINATION bin)
